/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.datalogic.define.dao;

import e.odbo.data.dao.InfoDAO;
import com.openbravo.data.basic.BasicException;
import com.openbravo.data.loader.serialize.DataRead;
import com.openbravo.bean.Role;
import com.openbravo.bean.infobean.RoleInfo;

/**
 *
 * @author Administrator
 */
public class RoleInfoDAO extends InfoDAO<RoleInfo,RoleDAO>{

    public RoleInfoDAO(RoleDAO base) {
        super(base,new int[]{0,1,3});
    }

    public Class getSuportClass() {
        return RoleInfo.class;
    }

    public RoleInfo readValues(DataRead dr,RoleInfo obj) throws BasicException {
    	if(obj==null)
        	obj=new Role();
        obj.setID(dr.getString(1));
        obj.setM_sName(dr.getString(2));
        obj.setM_advCode(dr.getString(3));  
        return obj; 
     }    

}
